package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.AwardDao;
import com.oscarmovie.model.Award;

public class AwardServiceImpl implements AwardService{
	private AwardDao awardDao;

	public void setAwardDao(AwardDao awardDao) {
		this.awardDao = awardDao;
	}

	public AwardDao getAwardDao() {
		return awardDao;
	}

	
	public void save(Award award) {
		awardDao.save(award);
	}

	
	public Award load(int id) {
		Award award =  awardDao.load(id);
		return award;
	}

	
	public List<Award> loadAll() {
		return awardDao.loadAll();
	}
}
